package com.lianniu.web.demand.dao;

import com.lianniu.web.demand.vo.DemandSupplyVo;
import com.lianniu.web.product.model.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DemandSupplyDao {
    int deleteByPrimaryKey(Long id);

    int insert(DemandSupplyVo record);

    int insertSelective(DemandSupplyVo record);

    DemandSupplyVo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DemandSupplyVo record);

    int updateByPrimaryKey(DemandSupplyVo record);

    List<DemandSupplyVo> selectByUserId(@Param("userId") String userId,@Param("page") Page page);
    int selectByUserIdCount(@Param("userId") String userId);
}